package io.renren.modules.substation.service.impl;

import io.renren.modules.substation.entity.TTotalDayInfoForShow;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.substation.dao.TTotalDayInfoDao;
import io.renren.modules.substation.entity.TTotalDayInfoEntity;
import io.renren.modules.substation.service.TTotalDayInfoService;


@Service("tTotalDayInfoService")
public class TTotalDayInfoServiceImpl extends ServiceImpl<TTotalDayInfoDao, TTotalDayInfoEntity> implements TTotalDayInfoService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<TTotalDayInfoEntity> page = this.page(
                new Query<TTotalDayInfoEntity>().getPage(params),
                new QueryWrapper<TTotalDayInfoEntity>()
        );

        return new PageUtils(page);
    }

    @Override
    public List<TTotalDayInfoEntity> queryTotalDayInfoByCondition(TTotalDayInfoForShow tTotalDayInfoForShow)
    {
        return (List<TTotalDayInfoEntity>)baseMapper.queryTotalDayInfoByCondition(tTotalDayInfoForShow);
    }
}